/** Post **/

.post-warp {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding-top: 2rem;

  .post-header h1 {
    margin: 0 !important;
  }

  .post-title {
    font-size: 2em;
    line-height: 1.5em;
  }

  .post-meta {
    color: rgba(85, 85, 85, 0.52941) !important;
    .dark-theme & {
      color: $dark-font-secondary-color !important;
    }

    a {
      color: $light-post-link-color;
      .dark-theme & {
        color: $dark-post-link-color;
      }

      &:hover {
        color: $light-post-link-hover-color;
        .dark-theme & {
          color: $dark-post-link-hover-color;
        }
      }
    }
  }

  .post-content {
    padding-top: 2rem;

    // 隐藏文字
    .spoiler { 
      color: black; 
      background-color:black;
    }
    .spoiler:hover{
      color: white;
    }

    // 嵌入 BiliBili 视频
    #biliplayer {
      width: 100%;
      height: 550px;
    }
    @media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
      #biliplayer {
        width: 100%;
        height: 250px;
      }
    }

    h2,
    h3,
    h4,
    h5,
    h6 {
      padding-top: .8em;
      padding-bottom: .3em;
    }
    h2::before {
      content: "#";
      margin-right: 5px;
      color: $light-post-link-color;
      .dark-theme & {
        color: $dark-post-link-color;
      }
    }

    h3::before {
      content: "|";
      margin-right: 5px;
      color: $light-post-link-color;

      .dark-theme & {
        color: $dark-post-link-color;
      }
    }

    a {
      color: $light-post-link-color;
      .dark-theme & {
        color: $dark-post-link-color;
      }
    }

    a:hover {
      color: $light-post-link-hover-color;
      .dark-theme &:hover {
        color: $dark-post-link-hover-color;
        // font-weight: bold;
        text-decoration: underline;
      }
    }

    code,
    pre {
      padding: 7px;
      font-size: 13px;
      white-space: pre-wrap;
      word-wrap: break-word;
      font-family: 'Fira Code', Consolas, Monaco, Menlo, Consolas, monospace;
      word-break: break-all;
      word-wrap: break-word;
    }

    code:not([class]) {
      padding: 1px 6px;
      margin: 0 2px;
      background: $light-code-notclass-background-color;
      border-radius: 5px;

      .dark-theme &:not([class]) {
        background: $dark-code-notclass-background-color;
      }
    }

    ul {
      padding-left: 2em;
    }

    table {
      max-width: 100%;
      margin: 10px 0;
      border-spacing: 0;
      box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.125);

      th,
      td {
        padding: 5px 15px;
        border: 1px double #ebe9f5;
      }
    }

    figure {
      text-align: center;
      img:hover{
        cursor: zoom-in;
      }
    }

    .image-caption:not(:empty) {
      min-width: 20%;
      max-width: 100%;
      display: inline-block;
      padding: 10px;
      margin: 0 auto;
      border-bottom: 1px solid #d9d9d9;
      font-size: 14px;
      color: #969696;
      line-height: 1.7;
    }

    img {
      display: block;
      max-width: 100%;
      height: auto;
      margin: 0 auto;
      overflow: hidden;
      .dark-theme & {
        filter: brightness(50%)
      }
    }

   

    img[data-action="zoom"] {
      cursor: zoom-in;
    }

    .featured_image {
      width: 100% !important;
      max-width: 100% !important;
      height: auto !important;
      margin: 0 !important;
    }
  }

  p {
    font-size: 1em;
    margin: .5em 0 .5em 0;
  }

  .post-copyright {
    margin-top: 5rem;
    border-top: 1px solid $light-border-color;
    border-bottom: 1px solid $light-border-color;

    .copyright-item {
      margin: 5px 0;
    }

    .lincese {
      font-weight: bold;
    }

    .dark-theme & {
      border-top: 1px solid $dark-border-color;
      border-bottom: 1px solid $dark-border-color;
    }
  }

  .post-tags {
    padding: 1rem 0 1rem;
    display: flex;
    justify-content: space-between;

  }


  .post-nav {

    &:before,
    &:after {
      content: " ";
      display: table;
    }

    & a.prev,
    & a.next {
      font-weight: 600;
      font-size: 16px;

      transition-property: transform;
      transition-timing-function: ease-out;
      transition-duration: 0.3s;
    }

    & a.prev {
      float: left;
    }

    & a.prev:hover {
      transform: translateX(-4px);
    }

    & a.next {
      float: right;
    }
    & a.next:hover {
      transform: translateX(4px);
    }
  }

  .tag:not(:last-child) a::after {
    content: " / ";
  }

  .post-comment{
    padding: 3em 0;
  }
}